package com.thb.pay.api.order.fallback;

import com.thb.pay.api.order.PayOrderServiceApi;
import com.thb.pay.api.order.vo.req.PayOrderPageReq;
import com.thb.pay.api.order.vo.req.PayOrderReq;
import com.thb.pay.api.order.vo.resp.PayOrderVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;

public class PayOrderServiceApiFallbackFactory implements FallbackFactory<PayOrderServiceApi> {

    @Override
    public PayOrderServiceApi create(Throwable throwable) {
        return new PayOrderServiceApi() {
            @Override
            public PageResult<PayOrderVo> findPage(PayOrderPageReq pageReq) {
                return null;
            }

            @Override
            public void add(PayOrderReq payOrderReq) {

            }

            @Override
            public void update(PayOrderReq payOrderReq) {

            }

            @Override
            public PayOrderVo getById(Long id) {
                return null;
            }

            @Override
            public PayOrderVo getByOrderNum(String orderNum) {
                return null;
            }

            @Override
            public PayOrderVo getByMerchantOrderNum(String merchantOrderNum) {
                return null;
            }

            @Override
            public PayOrderVo getByThirdOrderNum(String thirdOrderNum) {
                return null;
            }
        };
    }
}